/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;
import java.sql.Date;
import java.util.Objects;
/**
 *
 * @author lee
 */
public class StaffDTO {
    
    // <editor-fold defaultstate="collapsed" desc=" Attributes ">
    private String m_StaffID;
    private String m_FullName;
    private String m_Gender;
    private Date m_DateOfBirth;
    private String m_PhoneNumber;
    private String m_Address;
    private String m_PositionID;
    private String m_UserName;
    private String m_Password;
    
    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Properties ">
    public String getStaffID() {
        return m_StaffID;
    }

    public void setStaffID(String strStaffID) {
        this.m_StaffID = strStaffID;
    }

    public String getFullName() {
        return m_FullName;
    }

    public void setFullName(String strFullName) {
        this.m_FullName = strFullName;
    }

    public Date getDateOfBirth() {
        return m_DateOfBirth;
    }

    public void setDateOfBirth(Date dtDateOfBirth) {
        this.m_DateOfBirth = dtDateOfBirth;
    }

    public String getGender() {
        return m_Gender;
    }

    public void setGender(String strGender) {
        this.m_Gender = strGender;
    }

    public String getAddress() {
        return m_Address;
    }

    public void setAddress(String strAddress) {
        this.m_Address = strAddress;
    }

    public String getPhoneNumber() {
        return m_PhoneNumber;
    }

    public void setPhoneNumber(String strPhoneNumber) {
        this.m_PhoneNumber = strPhoneNumber;
    }

    public String getPositionID() {
        return m_PositionID;
    }

    public void setPositionID(String m_PositionID) {
        this.m_PositionID = m_PositionID;
    }

    public String getUserName() {
        return m_UserName;
    }

    public void setUserName(String m_UserName) {
        this.m_UserName = m_UserName;
    }

    public String getPassword() {
        return m_Password;
    }

    public void setPassword(String m_Password) {
        this.m_Password = m_Password;
    }

    // </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc=" Method ">
    public StaffDTO(){
        
    }
    public StaffDTO(String strStaffID, String strFullName)
    {
        this.m_StaffID = strStaffID;
        this.m_FullName = strFullName;
    }
    
    public StaffDTO(String strStaffID, String strFullName, String strGender, Date dtDateOfBirth,   
            String strPhoneNumber, String strAddress, String strPositionId){
        this.m_StaffID = strStaffID;
        this.m_FullName = strFullName;
        this.m_DateOfBirth = dtDateOfBirth;
        this.m_Gender = strGender;
        this.m_Address = strAddress;
        this.m_PhoneNumber = strPhoneNumber;
        this.m_PositionID = strPositionId;
    }
    
     public StaffDTO(String strStaffID, String strFullName, String strGender, 
            Date dtDateOfBirth, String strPhoneNumber, String strAddress, 
            String strPositionId, String strUserName, String strPassword){
        this.m_StaffID = strStaffID;
        this.m_FullName = strFullName;
        this.m_DateOfBirth = dtDateOfBirth;
        this.m_Gender = strGender;
        this.m_Address = strAddress;
        this.m_PhoneNumber = strPhoneNumber;
        this.m_PositionID = strPositionId;
        this.m_UserName = strUserName;
        this.m_Password = strPassword;
    }

    @Override
    public String toString() {
        return "StaffDTO{" + "m_FullName=" + m_FullName + '}';
    }
     
     @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + Objects.hashCode(this.m_StaffID);
        hash = 89 * hash + Objects.hashCode(this.m_FullName);
        hash = 89 * hash + Objects.hashCode(this.m_DateOfBirth);
        hash = 89 * hash + Objects.hashCode(this.m_Gender);
        hash = 89 * hash + Objects.hashCode(this.m_Address);
        hash = 89 * hash + Objects.hashCode(this.m_PhoneNumber);
        hash = 89 * hash + Objects.hashCode(this.m_PositionID);
        hash = 89 * hash + Objects.hashCode(this.m_UserName);
        hash = 89 * hash + Objects.hashCode(this.m_Password);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final StaffDTO other = (StaffDTO) obj;
        if (!Objects.equals(this.m_StaffID, other.m_StaffID)) {
            return false;
        }
        if (!Objects.equals(this.m_FullName, other.m_FullName)) {
            return false;
        }
        if (!Objects.equals(this.m_DateOfBirth, other.m_DateOfBirth)) {
            return false;
        }
        if (!Objects.equals(this.m_Gender, other.m_Gender)) {
            return false;
        }
        if (!Objects.equals(this.m_Address, other.m_Address)) {
            return false;
        }
        if (!Objects.equals(this.m_PhoneNumber, other.m_PhoneNumber)) {
            return false;
        }
        if (!Objects.equals(this.m_PositionID, other.m_PositionID)) {
            return false;
        }
        if (!Objects.equals(this.m_UserName, other.m_UserName)) {
            return false;
        }
        if (!Objects.equals(this.m_Password, other.m_Password)) {
            return false;
        }
        return true;
    }
     
    // </editor-fold>

   
}
